package main.canvas;

import javax.swing.*;
import java.awt.*;

public class RiverDisplay {
    static GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0];

    public void show() {
        JFrame frame = new JFrame("River app");
//        frame.setUndecorated(true);
        device.setFullScreenWindow(frame);
//        frame.setSize(1024, 768);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        ViewportLayout manager = new ViewportLayout();
        frame.setLayout(manager);
        frame.getContentPane().add(new JButton("hello"));
        frame.pack();
        frame.setVisible(true);
    }

    public static void main(String[] args) {
        new RiverDisplay().show();
    }
}
